package com.easy.dao;

import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IUserDao {
    String getNow();
    User getUserByID(int id);
    List<User> getUser(@Param("user") User user, @Param("page") Page page);
    int getCount(@Param("user") User user);
    int delUser(int id);
    int addUser(User user);
    int editUser(User user);

    List<User> getUserByUsername(String username);
    int saveImg(User user);

    int setPassword(User user);
}
